# 继承

class Person:
    def __init__(self, name):
        self.name = name

    def say_hello(self):
        print("Hello,my name is", self.name)


class Student(Person):
    def __init__(self, name, grade):
        super().__init__(name)
        self.grade = grade

    def say_garde(self):
        print("My grade is ", self.grade)


person = Person("Alice")
person.say_hello()
student = Student("Bob", 18)
student.say_hello()
student.say_garde()

